
//setTimeout
//setInterval

setTimeout(function(){
  console.log('set time out 3 seconds passed');
}, 3000);

var count = 0;
console.log('count is ' + count);

 var twoSecondTimer =  setInterval(function(){
     count++;

     if(count === 5){
         clearInterval(twoSecondTimer);
     }
    console.log('set interval 2 seconds ');
},2000);

//function -- 15secondse